﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_ReportBasket.ascx.cs"
    Inherits="Stationery.UC.UC_ReportBasket" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2.Export, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<style type="text/css">
    .dxeTextBox, .dxeMemo
    {
        background-color: white;
        border: solid 1px #9f9f9f;
    }
    .dxeTextBox .dxeEditArea
    {
        background-color: white;
    }
    .dxeEditArea
    {
        font-family: Tahoma;
        font-size: 9pt;
        border: 1px solid #A0A0A0;
    }
    </style>
<table width="100%" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
                Width="100%" EnableTheming="True">
                <Columns>
                    <dxwgv:GridViewDataTextColumn Caption="ID" VisibleIndex="0" Visible="False">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Mã ĐH" FieldName="ORDER_CODE" VisibleIndex="0"
                        Width="65px">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Người đặt hàng" FieldName="FULLNAME" VisibleIndex="1"
                        Width="120px">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Địa chỉ" FieldName="ADDRESS" VisibleIndex="2">
                        <DataItemTemplate>
                            <dxe:ASPxLabel ID="ASPxLabel1" runat="server" Text='<%# Eval("ADDRESS") %>' ToolTip='<%# Eval("ADDRESS") %>'>
                            </dxe:ASPxLabel>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Thành phố" FieldName="CITY" VisibleIndex="3">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Điện thoại" FieldName="PHONE" VisibleIndex="4">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Ngày đặt" FieldName="ORDER_DATE" VisibleIndex="6">
                        <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Ngày nhận" FieldName="RECEIVE_DATE" VisibleIndex="5">
                        <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Tổng giá trị" FieldName="TOTAL" VisibleIndex="7"
                        ReadOnly="True">
                        <PropertiesTextEdit DisplayFormatString="### ### ###">
                            <MaskHintStyle Font-Bold="True">
                            </MaskHintStyle>
                            <ReadOnlyStyle Font-Bold="True">
                            </ReadOnlyStyle>
                            <Style BackColor="#3366CC" Font-Bold="True" ForeColor="#CC0000">
                                </Style>
                        </PropertiesTextEdit>
                        <EditCellStyle BackColor="#3366CC" Font-Bold="True">
                        </EditCellStyle>
                        <EditFormCaptionStyle Font-Bold="True">
                        </EditFormCaptionStyle>
                        <CellStyle BackColor="#3366CC" Font-Bold="True" ForeColor="#CC0000">
                        </CellStyle>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Chức năng" Name="function" VisibleIndex="8"
                        Width="77px">
                        <DataItemTemplate>
                            <table align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:LinkButton ID="LinkButtonDetail" runat="server" BorderStyle="None" CommandArgument='<%# Eval("ORDER_CODE") %>'
                                            OnClick="LinkButtonDetail_Click"><img 
                                            src="Image/Icon/view17.png" /></asp:LinkButton>
                                    </td>
                                    <td width="5px">
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="LinkButtonDelete" runat="server" BorderStyle="None" CommandArgument='<%# Eval("ORDER_CODE") %>'
                                            OnClick="LinkButtonDelete_Click"><img 
                                            src="Image/Icon/DeleteRed.png" /></asp:LinkButton>
                                    </td>
                                    <td width="5px">
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="LinkButtonSuccess" runat="server" BorderStyle="None" CommandArgument='<%# Eval("ORDER_CODE") %>'
                                            OnClick="LinkButtonSuccess_Click"><img 
                                            src="Image/Icon/success.gif" /></asp:LinkButton>
                                    </td>
                                                                        <td width="5px">
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="LinkButtonExcel" runat="server" BorderStyle="None" 
                                            CommandArgument='<%# Eval("ORDER_CODE") %>' onclick="LinkButtonExcel_Click"
                                            ><img 
                                            src="Image/Icon/excel16.gif" /></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                </Columns>
                <Settings ShowFilterRow="True" />
            </dxwgv:ASPxGridView>
        </td>
    </tr>
    <tr>
        <td style="padding-top: 3px;">
            <dxe:ASPxButton ID="ASPxButton1" runat="server" Text="Xuất Excel" OnClick="ASPxButton1_Click">
                <Image Url="~/Image/Icon/excel.gif" />
            </dxe:ASPxButton>
            <dxwgv:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="ASPxGridView1">
            </dxwgv:ASPxGridViewExporter>
        </td>
    </tr>
</table>
